#ifndef BLOCKGROUPDES_H
#define BLOCKGROUPDES_H
#include "superblock.h"
#include <iostream>
#include <QFile>
#define c std::cout
#define e std::endl
class BlockGroupDes
{
public:

    static int char2int(char *buf, int index);
    BlockGroupDes(char *buf);
    void stat(QFile *file, int blockSize, int blocks);
    void getBitmap(QFile *file, int blockSize, int blocks);
    unsigned char count_1bits(unsigned char x);
    int bg_free_inodes_count;
    int bg_free_blocks_count;
    int bg_block_bitmap;
};

#endif // BLOCKGROUPDES_H
